import Index from './Index.vue'

import Vue from 'vue'

let indexconstructor =Vue.extend(Index)

let instar=(list)=>{
    let index=new indexconstructor
       index.$mount(document.createElement('div'))
       document.body.appendChild(index.$el)
       index.show=true
       console.log(list);
       if(list.title){
        index.title=list.title
       }
      
       return index


}
export default instar